home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-05
/
atnet.zip
/
ATNET.DOC
< prev
next >
Wrap
Text File
|
1991-08-16
|
4KB
|
111 lines
ATNET
ShareWare
LANtastic NET with Indirect File Support
ATNET is a simple utility that allows you to execute several of the
commands that are supported by the LANtastic NET command. The
advantage of using ATNET is that you have the capability of using
indirect files to execute a series of commands. By allowing you to
execute multiple commands with a single invocation of the
executable module, the time it takes to complete that series is
reduced by the amount of time it takes to locate the program
(somewhere along your path) and load it.
In many instances, this can be a significant amount of time;
particularly if you routinely log on to several servers and then
USE many resources on those servers. In our installation here, we
log on to two different servers and establish 12 different
redirections. The amount of time saved here varies as follows:
NET ATNET
8 mhz XT compatable 43 27
12 mhz AT compatable 20 12
25 mhz 386 6 4
NOTE: All times are in seconds as timed by Norton TM.
The following commands are currently supported by ATNET:
LOGIN
LOGOUT
USE
UNUSE
HELP
LPT TIMEOUT
One nice feature that I have built into ATNET is that it will
ignore the first parameter on a line within an indirect file if it
is NET. This means that if you have a .BAT file already set up to
perform your logins, all you need to do is use that file name on
the ATNET command line and you are in business.
Below are a few examples that may help you see what I mean:
LOGON.BAT
net login \\server\user password
net use e: \\server\c-drive
net use lpt1 \\server\@printer
As you can see, this simple batch file will work great; but to
speed things up a little, you can simple do the following:
ATNET @LOGIN.BAT
Since ATNET ignores the leading NET, everything works fine. You
can also set up indirect files without the leading net:
INDIRECT.FIL
login \\server\user password
use e: \\server\c-drive
use lpt1 \\server\@printer
ATNET @INDIRECT.FIL
One word of caution, ATNET is not very forgiving in its current
incarnation. It does not like invalid commands - it just complains
and quits.
I have included the Turbo C source code for ATNET so you can see
how I do things. But, I did not include the source for the library
functions (LANTASTI.C). If you would like to get that source, you
will need to register with me and pay a small registration fee
($20).
If you find that you use this program on a regular basis, please
send me a note. I would also appreciate a small contribution
($5-$10) so that I can justify spending time working on these
utility programs.
I hope you find this program useful. To register please fill out
the following and mail it to me (with any registration fee).
ATNET Registration
NAME: ___________________________________________________________
COMPANY: ________________________________________________________
ADDRESS: ________________________________________________________
________________________________________________________
________________________________________________________
Registration Fee ($5 - $10 Suggested) $ ______________
Source Code Fee ($20) ______________
Total: $ ______________
Please mail to:
Ken Cline
7111 Dijohn Court Drive
Alexandria, VA 22310